<?php
/**
 * Created by PhpStorm.
 * User: PanChaoZhi
 * Date: 2017/1/24
 * Time: 16:12
 */
namespace app\controller;

use app\models\TestModel;

class indexController
{
    function index()
    {
        debug("this is the controller debug");
        echo "this is the controller debug\n";

        /**
         * 数据库连接
         */
        $pdo = new TestModel();
        $sql = "SELECT * FROM member";
        $res = $pdo->query($sql);
        debug($res->fetchAll());

    }
}